import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/cost/park/paymentscost/page',
    method: 'get',
    params: query
  })
}

export function getDetail(query) {
  return request({
    url: '/cost/park/paymentscost/details',
    method: 'get',
    params: query
  })
}

export function fetchPayDetails(query) {
  return request({
    url: '/cost/park/paymentscost/payDetails',
    method: 'get',
    params: query
  })
}

export function addCOtherCost(obj) {
  return request({
    url: '/cost/cothercost',
    method: 'post',
    data: obj
  })
}

export function exportPaymentscost(){
  return request({
    url: '/cost/cothercost',
    method: 'post',
    data: obj
  })
}

/**
 * 缴费
 */
export function confirmPayments(obj){
  return request({
    url: '/cost/park/paymentscost/confirmPayments',
    method: 'post',
    data: obj
  })
}

/**
 * 开票
 * @returns
 */
export function addInvoice(obj){
  return request({
    url: '/cost/park/paymentscost/invoice',
    method: 'post',
    data: obj
  })
}
